package com.example.mvvmbase.viewmodel;

import android.app.Application;
import android.view.View;
import android.widget.Toast;

import androidx.annotation.NonNull;

import com.mobian.mvvm.base.BaseModel;
import com.mobian.mvvm.base.BaseViewModel;

public class MainViewModel extends BaseViewModel<BaseModel> {
    public MainViewModel(@NonNull Application application) {
        super(application);
    }

    public MainViewModel(@NonNull Application application, BaseModel model) {
        super(application, model);
    }


    public void show(View view){


        Toast.makeText(getApplication(), "圣诞快乐", Toast.LENGTH_SHORT).show();
    }
}
